﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/MasterPage2.master" AutoEventWireup="true" CodeBehind="UserOperateBatch.aspx.cs" Inherits="HZ.Supervise.Web.Admin.UserOperateBatch" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<div id="tabnav">
        <ul>
            <li class="active"><a href="javascript:void(0);">用户权限设置</a></li>
        </ul>
    </div>
    <div id="tabcontent">
        <table class="list1">
            <tr>
                <th style="width:110px">
                    <asp:Label ID="lblChildUserId" runat="server" Text="待设置权限的用户："></asp:Label>
                </th>
                <td>
                    <asp:Label ID="lblUserId" runat="server"></asp:Label>
                &nbsp;<asp:CheckBox ID="cbAllUser" runat="server" ForeColor="Red" 
                        Text="设置该角色下所有用户" />
                </td>
            </tr>
            <tr>
                <th style="width:110px">
                    <asp:Label ID="lblChildUserName" runat="server" Text="所属角色："></asp:Label>
                </th>
                <td>
                    <asp:Label ID="lblRoleName" runat="server"></asp:Label>
                &nbsp;</td>
            </tr>
        </table>
    </div>
    <asp:Repeater ID="rptModule" runat="server" OnItemDataBound="rptModule_ItemDataBound">
        <HeaderTemplate>
            <table id="mainlist" class="mainlist">
                <tr>
                    <th style="width: 30px">
                        序号
                    </th>
                    <th style="width: 150px">
                        模块名称
                    </th>
                    <th style="text-align: left; padding-left: 40px">
                        操作权限
                        <input id="chkAll" name="chkAll" type="checkbox" onclick="SelectAllCheckboxes(this,'mainlist','chkAll'); " />
                    </th>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr class="row">
                <td>
                    <%#Container.ItemIndex+1 %>
                </td>
                <td>
                    <%--<%#HZ.DrugTrade.Model.Enum.EnumParse.GetModule((int)Eval("Module"))  %>--%>
                    <%#HZ.Supervise.Model.Enum.EnumParse.GetModule((int)Eval("Module"))%>
                </td>
                <td align="left">
                    <asp:Repeater ID="rptOperate" runat="server">
                        <HeaderTemplate>
                            <table class="innertable">
                                <tr>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <td>
                                 <input name="chkOperate" id="chkOperate<%# (Eval("OperatingRuleID"))%>" type="checkbox" value="<%# (Eval("OperatingRuleID"))%>"
                                     /><label for="chkOperate<%# (Eval("OperatingRuleID"))%>"><%#Eval("OperatingRuleName")%></label>
                            </td>
                        </ItemTemplate>
                        <FooterTemplate>
                            </tr></table></FooterTemplate>
                    </asp:Repeater>
                </td>
            </tr>
        </ItemTemplate>
        <AlternatingItemTemplate>
            <tr class="alter">
                <td>
                    <%#Container.ItemIndex+1 %>
                </td>
                <td>
                    <%#HZ.Supervise.Model.Enum.EnumParse.GetModule((int)Eval("Module"))%>
                </td>
                <td align="left">
                    <asp:Repeater ID="rptOperate" runat="server">
                        <HeaderTemplate>
                            <table class="innertable">
                                <tr>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <td>
                                <input name="chkOperate" id="chkOperate<%# (Eval("OperatingRuleID"))%>" type="checkbox" value="<%# (Eval("OperatingRuleID"))%>"
                                     /><label for="chkOperate<%# (Eval("OperatingRuleID"))%>"><%#Eval("OperatingRuleName")%></label>
                            </td>
                        </ItemTemplate>
                        <FooterTemplate>
                            </tr></table></FooterTemplate>
                    </asp:Repeater>
                </td>
            </tr>
        </AlternatingItemTemplate>
        <FooterTemplate>
            </table></FooterTemplate>
    </asp:Repeater>
    <div class="listip">
        <ul>
            <li>说明:<span> 说明信息</span></li>
        </ul>
    </div>
    <div class="listctrl">
        <hz:HzButton ID="btnSave" runat="server" Text="保存权限" OnClick="btnSave_Click" 
            CssClass="btn" OperateType="权限设置"  />
        &nbsp;
        <input type="button" value="返回" onclick="javascript:history.go(-1)" class="btn" />
    </div>
</asp:Content>
